package com.huc.rabbit.mq.consumer;

import com.huc.rabbit.mq.config.RabbitP2PConfig;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"test1"})
public class P2PMessageConsumerA {

    @RabbitHandler
    public void consumer(String msg){
        System.out.println("点对点消费模式 消费者 a:"+msg);
    }

}
